-
Notifications
You must be signed in to change notification settings - Fork 16
feat(docs): snapshot v1.14.0 Omnigraph examples #2177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
shrugs
wants to merge
5
commits into
main
Choose a base branch
from
worktree-omnigraph-v1.14-examples
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
b6c52d2
feat(docs): snapshot v1.14.0 Omnigraph examples
shrugs 962f5e8
refactor(docs): build omnigraph endpoint URL with the URL API
shrugs b36fc2c
feat(docs): add ENSv1→ENSv2 migration Omnigraph examples
shrugs a254a8c
chore(docs): drop bootstrap note from v1.13.1 snapshot
shrugs 0de0c62
fix(docs): retag snapshot v1.14.1, drop batch example, simplify eth e…
shrugs File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| --- | ||
| "@ensnode/ensnode-sdk": patch | ||
| --- | ||
|
|
||
| add two ENSv1 → ENSv2 migration Omnigraph examples: `account-migrated-names` (ENSv1 vs ENSv2 domain counts for an account) and `eth-by-version` (the .eth TLD across protocol versions, one Domain per version discriminated by `__typename`). | ||
|
|
||
| also fix the `domain-resolver` example: `SEPOLIA_V2_NAME_WITH_OWNED_RESOLVER` now points to `demomigration.eth`, which has an owned resolver with records/permissions/events. The previous name (`sfmonicdebmig.eth`) had no owned resolver, so the example rendered `resolver.assigned: null`. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
113 changes: 113 additions & 0 deletions
113
docs/ensnode.io/src/data/omnigraph-examples/versions/v1.14.1/examples.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,113 @@ | ||
| [ | ||
| { | ||
| "id": "hello-world", | ||
| "query": "#\n# Welcome to this interactive playground for\n# ENSNode's GraphQL API!\n#\n# You can get started by typing your query here or by using\n# the Explorer on the left to select the data you want to query.\n#\n# There are also example queries in the tabs above ☝️\nquery HelloWorld {\n domain(by: { name: \"eth\" }) { canonical { name { interpreted } } owner { address } }\n}", | ||
| "variables": {} | ||
| }, | ||
| { | ||
| "id": "find-domains", | ||
| "query": "query FindDomains(\n $name: DomainsNameFilter!\n $order: DomainsOrderInput\n) {\n domains(\n where: { name: $name }\n order: $order\n first: 20\n ) {\n edges {\n node {\n __typename\n id\n label { interpreted hash }\n canonical { name { interpreted } }\n\n registration { expiry event { timestamp } }\n }\n }\n }\n}", | ||
| "variables": { | ||
| "name": { | ||
| "starts_with": "test-na" | ||
| }, | ||
| "order": { | ||
| "by": "NAME", | ||
| "dir": "DESC" | ||
| } | ||
| } | ||
| }, | ||
| { | ||
| "id": "domain-by-name", | ||
| "query": "query DomainByName($name: InterpretedName!) {\n domain(by: {name: $name}) {\n __typename\n id\n label { interpreted hash }\n canonical { name { interpreted } node path { id } }\n owner { address }\n subregistry { contract { chainId address } }\n\n ... on ENSv1Domain {\n rootRegistryOwner { address }\n }\n }\n}", | ||
| "variables": { | ||
| "name": "test-name.eth" | ||
| } | ||
| }, | ||
| { | ||
| "id": "domain-subdomains", | ||
| "query": "query DomainSubdomains($name: InterpretedName!) {\n domain(by: {name: $name}) {\n canonical { name { interpreted } }\n subdomains(first: 10) {\n edges {\n node {\n canonical { name { interpreted } }\n }\n }\n }\n }\n}", | ||
| "variables": { | ||
| "name": "eth" | ||
| } | ||
| }, | ||
| { | ||
| "id": "domain-events", | ||
| "query": "query DomainEvents($name: InterpretedName!) {\n domain(by: {name: $name}) {\n events {\n totalCount\n edges {\n node {\n from\n to\n topics\n data\n timestamp\n transactionHash\n }\n }\n }\n }\n}", | ||
| "variables": { | ||
| "name": "sfmonicdebmig.eth" | ||
| } | ||
| }, | ||
| { | ||
| "id": "domains-by-address", | ||
| "query": "query AccountDomains(\n $address: Address!\n) {\n account(by: { address: $address }) {\n domains {\n edges {\n node {\n label { interpreted }\n canonical { name { interpreted } }\n }\n }\n }\n }\n}", | ||
| "variables": { | ||
| "address": "0x205d2686da3bf33f64c17f21462c51b5ead462cf" | ||
| } | ||
| }, | ||
| { | ||
| "id": "account-events", | ||
| "query": "query AccountEvents(\n $address: Address!\n) {\n account(by: { address: $address }) {\n events { totalCount edges { node { topics data timestamp } } }\n }\n}", | ||
| "variables": { | ||
| "address": "0x205d2686da3bf33f64c17f21462c51b5ead462cf" | ||
| } | ||
| }, | ||
| { | ||
| "id": "registry-domains", | ||
| "query": "query RegistryDomains(\n $registry: AccountIdInput!\n) {\n registry(by: { contract: $registry }) {\n domains {\n edges {\n node {\n label { interpreted }\n canonical { name { interpreted } }\n }\n }\n }\n }\n}", | ||
| "variables": { | ||
| "registry": { | ||
| "chainId": 99911155111, | ||
| "address": "0x31a2bb5d933557cce1b3129993193896d074db92" | ||
| } | ||
| } | ||
| }, | ||
| { | ||
| "id": "permissions-by-contract", | ||
| "query": "query PermissionsByContract(\n $contract: AccountIdInput!\n) {\n permissions(by: { contract: $contract }) {\n resources {\n edges {\n node {\n resource\n users {\n edges {\n node {\n id\n user { address }\n roles\n }\n }\n }\n }\n }\n }\n events { totalCount edges { node { topics data timestamp } } }\n }\n}", | ||
| "variables": { | ||
| "contract": { | ||
| "chainId": 99911155111, | ||
| "address": "0x26e5e80e8f36607ef401443fb34eea363c86e8f7" | ||
| } | ||
| } | ||
| }, | ||
| { | ||
| "id": "permissions-by-user", | ||
| "query": "query PermissionsByUser($address: Address!) {\n account(by: { address: $address }) {\n permissions {\n edges {\n node {\n resource\n roles\n }\n }\n }\n }\n}", | ||
| "variables": { | ||
| "address": "0x205d2686da3bf33f64c17f21462c51b5ead462cf" | ||
| } | ||
| }, | ||
| { | ||
| "id": "account-resolver-permissions", | ||
| "query": "query AccountResolverPermissions($address: Address!) {\n account(by: { address: $address }) {\n resolverPermissions {\n edges {\n node {\n resolver {\n contract {\n address\n }\n }\n }\n }\n }\n }\n}", | ||
| "variables": { | ||
| "address": "0x205d2686da3bf33f64c17f21462c51b5ead462cf" | ||
| } | ||
| }, | ||
| { | ||
| "id": "domain-resolver", | ||
| "query": "query DomainResolver($name: InterpretedName!) {\n domain(by: { name: $name }) {\n resolver {\n assigned {\n records { edges { node { node keys coinTypes } } }\n permissions { resources { edges { node { resource users { edges { node { user { address } roles } } } } } } }\n events { totalCount edges { node { topics data timestamp } } }\n }\n }\n }\n}", | ||
| "variables": { | ||
| "name": "demomigration.eth" | ||
| } | ||
| }, | ||
| { | ||
| "id": "namegraph", | ||
| "query": "query Namegraph {\n root {\n id\n domains {\n edges {\n node {\n canonical { name { interpreted } }\n\n subdomains {\n edges {\n node {\n canonical { name { interpreted } }\n\n subdomains {\n edges {\n node {\n canonical { name { interpreted } }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n}", | ||
| "variables": {} | ||
| }, | ||
| { | ||
| "id": "account-migrated-names", | ||
| "query": "query AccountMigratedNames($address: Address!) {\n account(by: { address: $address }) {\n v1DomainsCount: domains(where: { version: ENSv1 }) { totalCount }\n v2DomainsCount: domains(where: { version: ENSv2 }) { totalCount }\n }\n}", | ||
| "variables": { | ||
| "address": "0x2f8e8b1126e75fde0b7f731e7cb5847eba2d2574" | ||
| } | ||
| }, | ||
| { | ||
| "id": "eth-by-version", | ||
| "query": "query GetEthDomains {\n domains(where: { name: { eq: \"eth\" } }) {\n edges {\n node {\n __typename\n id\n }\n }\n }\n}", | ||
| "variables": {} | ||
| } | ||
| ] |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧹 Nitpick | 🔵 Trivial | ⚡ Quick win
Keep the changeset body as a single paragraph.
The description is currently split into two paragraphs; please keep it as one terse paragraph to match repo convention.
♻️ Proposed edit
Based on learnings: In this repository’s
.changesetmarkdown files, keep the changeset description as a terse, single-paragraph write-up.📝 Committable suggestion
🧰 Tools
🪛 markdownlint-cli2 (0.22.1)
[warning] 5-5: First line in a file should be a top-level heading
(MD041, first-line-heading, first-line-h1)
🤖 Prompt for AI Agents