From e24b2a779a7a6306fe609b8718ed0880291f31e1 Mon Sep 17 00:00:00 2001 From: Greg <35093316+gskril@users.noreply.github.com> Date: Thu, 6 Jun 2024 10:52:08 -0400 Subject: [PATCH] Misc updates to bug bounty and subgraph info (#243) --- .github/CODEOWNERS | 2 +- app/src/components/mdx/Note.tsx | 2 +- docs/bugs.mdx | 2 +- docs/web/enumerate.mdx | 2 +- docs/web/resolution.mdx | 2 ++ docs/web/subgraph.mdx | 15 +++++++++++---- 6 files changed, 17 insertions(+), 8 deletions(-) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index e703d75b..1a51b575 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 3fa5defe..03976ef0 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 d598a5d0..f3dc0143 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 ff4e6088..b8372f24 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 a1861ba8..7034007a 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 40bb8299..7e6d906f 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