https://github.com/graphops/graphcast-registry-subgraph
Subgraph API for querying Graphcast IDs
https://github.com/graphops/graphcast-registry-subgraph
graph-protocol graphcast registry subgraph the-graph
Last synced: 21 days ago
JSON representation
Subgraph API for querying Graphcast IDs
- Host: GitHub
- URL: https://github.com/graphops/graphcast-registry-subgraph
- Owner: graphops
- License: apache-2.0
- Created: 2023-02-08T01:56:10.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-02-01T13:33:12.000Z (over 2 years ago)
- Last Synced: 2024-02-01T19:48:18.438Z (over 2 years ago)
- Topics: graph-protocol, graphcast, registry, subgraph, the-graph
- Language: TypeScript
- Homepage: https://github.com/graphops/graphcast-registry-subgraph
- Size: 186 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Contributing: contributing.md
- License: LICENSE
- Code of conduct: code_of_conduct.md
- Security: security.md
Awesome Lists containing this project
README
# Graphcast Registry Subgraph
[](https://docs.graphops.xyz/graphcast/intro)
## Introduction
Graphcast is a decentralized, distributed peer-to-peer (P2P) communication tool that allows Indexers across the network to exchange information in real-time. This registry subgraph allows a user to query the registry contract and observe the indexer-to-graphcastID relationship using The Graph.
To see the full idea behind Graphcast, you can check out the [GRC](https://forum.thegraph.com/t/grc-001-graphcast-a-gossip-network-for-indexers/3544/8) for it.
### Endpoints
| Network | Registry Contract | Subgraph Playground | Subgraph API |
| --------------- | ----------------------------------------------------------- | -------------------------------------------------------------- | ------------------------------------------------------------- |
| Ethereum-mainnet | [0x89f97698d6006f25570cd2e31737d3d22aedcbcf](https://etherscan.io/address/0x89f97698d6006f25570cd2e31737d3d22aedcbcf) | [Link](https://thegraph.com/hosted-service/subgraph/hopeyen/graphcast-registry-mainnet) | [Link](https://api.thegraph.com/subgraphs/name/hopeyen/graphcast-registry-mainnet) |
| Ethereum-goerli | [0x26ebbA649FAa7b56FDB8DE9Ea17aF3504B76BFA0](https://goerli.etherscan.io/address/0x26ebbA649FAa7b56FDB8DE9Ea17aF3504B76BFA0) | [Link](https://thegraph.com/hosted-service/subgraph/hopeyen/graphcast-registry-goerli) | [Link](https://api.thegraph.com/subgraphs/name/hopeyen/graphcast-registry-goerli) |
| Arbitrum-one | [0xfae79e8cb8fbac2408e5baf89262bd92b6ca464a](https://arbiscan.io/address/0xfae79e8cb8fbac2408e5baf89262bd92b6ca464a) | [Link](https://thegraph.com/hosted-service/subgraph/hopeyen/graphcast-registry-arb-one) | [Link](https://api.thegraph.com/subgraphs/name/hopeyen/graphcast-registry-arb-one) |
| Arbitrum-sepolia | [0x17c3a072E5b1B2c260C29D289ee2E7372b8f7C69](https://sepolia.arbiscan.io/address/0x17c3a072E5b1B2c260C29D289ee2E7372b8f7C69) | [Link](https://thegraph.com/explorer/subgraph/hopeyen/graphcast-registry-arb-sep) | [Link](https://api.thegraph.com/subgraphs/name/hopeyen/graphcast-registry-arb-sep) |
## Features
This subgraph provides information on both the Indexer registration status and the GraphcastID registration status, specifically mapping the indexer registered on The Graph service registry contract to GraphcastID registered on the Graphcast registry contract.
You can try out the subgraph at the explorer [playground](https://thegraph.com/hosted-service/subgraph/hopeyen/graphcast-registry-goerli).
Following the subgraph schema, you can make example queries such as below
```
query indexer(id:"0xe9a1cabd57700b17945fd81feefba82340d9568f"){
graphcastID
}
indexers(where:{graphcastID:"0x2bc5349585cbbf924026d25a520ffa9e8b51a39b"}){
id
graphcastID
registeredAtTimestamp
registeredAtTransaction
unregisteredAtBlock
}
serviceRegistereds(first: 5) {
indexer
blockNumber
}
ownershipTransferreds(first: 5) {
blockNumber
owner
}
```
## Quickstart
Follow the Graph [How to create a subgraph](https://thegraph.com/docs/en/developing/creating-a-subgraph/) guide to develop and deploy the subgraph.
## Contributing
We welcome and appreciate your contributions! Please see the [Contributor Guide](/CONTRIBUTING.md), [Code Of Conduct](/CODE_OF_CONDUCT.md) and [Security Notes](/SECURITY.md) for this repository.