https://github.com/mondomains/mns-subgraph
Mon Name Service Subgraph Repo
https://github.com/mondomains/mns-subgraph
graphql monad monaddomains monadname monadns subgraph thegrap
Last synced: 9 days ago
JSON representation
Mon Name Service Subgraph Repo
- Host: GitHub
- URL: https://github.com/mondomains/mns-subgraph
- Owner: MonDomains
- License: mit
- Created: 2025-02-20T12:12:09.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-03-05T14:55:15.000Z (about 1 year ago)
- Last Synced: 2025-03-11T11:42:28.157Z (about 1 year ago)
- Topics: graphql, monad, monaddomains, monadname, monadns, subgraph, thegrap
- Language: TypeScript
- Homepage: https://monadns.com
- Size: 113 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
# MNS Subgraph
This Subgraph sources events from the MNS contracts. This includes the MNS registry, the Auction Registrar, and any resolvers that are created and linked to domains. The resolvers are added through dynamic data sources. More information on all of this can be found at [The Graph Documentation](https://thegraph.com/docs/developer/quick-start/).
# Example Queries
Here we have example queries, so that you don't have to type them in yourself eachtime in the graphiql playground:
```graphql
{
domains {
id
labelName
labelhash
parent {
id
}
subdomains {
id
}
owner {
id
}
resolver {
id
}
ttl
}
resolvers {
id
address
domain {
id
}
events {
id
node
... on AddrChanged {
a
}
... on NameChanged {
name
}
... on AbiChanged {
contentType
}
... on PubkeyChanged {
x
y
}
... on TextChanged {
indexedKey
key
}
... on ContenthashChanged {
hash
}
... on InterfaceChanged {
interfaceID
implementer
}
... on AuthorisationChanged {
owner
target
isAuthorized
}
}
}
registrations(where: { labelName_not: null }, orderBy: expiryDate, orderDirection: asc, first: 10, skip: 0) {
expiryDate
labelName
domain{
name
labelName
}
}
}
```