Skip to content

Commit

Permalink
Misc updates to bug bounty and subgraph info (#243)
Browse files Browse the repository at this point in the history
  • Loading branch information
gskril authored Jun 6, 2024
1 parent 2cdb822 commit e24b2a7
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
docs/ @lucemans
docs/ @lucemans @gskril
.github/ @lucemans
app/ @lucemans @svemat01

Expand Down
2 changes: 1 addition & 1 deletion app/src/components/mdx/Note.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { InfoIcon } from '../icons/InfoIcon';

export const Note = ({ children }) => {
return (
<div className="dark:border-ens-500/30 my-6 flex gap-2.5 rounded-2xl border border-ens-light-border bg-ens-light-blue-50/50 p-4 leading-6 text-ens-light-blue-900 dark:border-ens-dark-border dark:bg-ens-light-blue-500/5 dark:text-ens-light-blue-200 dark:[--tw-prose-links-hover:theme(colors.ens.light.blue.300)] dark:[--tw-prose-links:theme(colors.white)]">
<div className="dark:border-ens-500/30 border-ens-light-border bg-ens-light-blue-50/50 text-ens-light-blue-900 dark:border-ens-dark-border dark:bg-ens-light-blue-500/5 dark:text-ens-light-blue-200 my-6 flex gap-2.5 rounded-2xl border p-4 leading-6 dark:[--tw-prose-links-hover:theme(colors.ens.light.blue.300)] dark:[--tw-prose-links:theme(colors.white)]">
<InfoIcon className="fill-ens-500 dark:fill-ens-200/20 dark:stroke-ens-200 mt-1 size-4 flex-none stroke-white" />
<div className="[&>:first-child]:mt-0 [&>:last-child]:mb-0">
{children}
Expand Down
2 changes: 1 addition & 1 deletion docs/bugs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ The ENS bug bounty program rewards anyone who finds a bug in covered ENS smart c
<LinkCard
title="Immunefi"
description="Web3's leading bug bounty platform that we use to manage our program."
link="https://immunefi.com/"
link="https://immunefi.com/bug-bounty/ens/"
logo="/content/learn/immunefi.svg"
/>
</div>
Expand Down
2 changes: 1 addition & 1 deletion docs/web/enumerate.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions docs/web/resolution.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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.

<CodeGroup title="Forward Resolution">

```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' }}
Expand Down
15 changes: 11 additions & 4 deletions docs/web/subgraph.mdx
Original file line number Diff line number Diff line change
@@ -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: '⚙️',
Expand All @@ -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).

<Note>
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.
</Note>

## GraphQL Schema

Expand All @@ -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

Expand Down

0 comments on commit e24b2a7

Please sign in to comment.