https://github.com/nucypher/nucypher-subgraph
Subgraph Definition for NuCypher Entities
https://github.com/nucypher/nucypher-subgraph
indexing nucypher subgraph
Last synced: 8 months ago
JSON representation
Subgraph Definition for NuCypher Entities
- Host: GitHub
- URL: https://github.com/nucypher/nucypher-subgraph
- Owner: nucypher
- Created: 2021-02-06T03:11:48.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-05-03T06:49:33.000Z (about 5 years ago)
- Last Synced: 2025-01-07T09:43:16.460Z (over 1 year ago)
- Topics: indexing, nucypher, subgraph
- Language: TypeScript
- Homepage: https://thegraph.com/explorer/subgraph/nucypher/nucypher
- Size: 274 KB
- Stars: 0
- Watchers: 9
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# nucypher-subgraph
Subgraph Definition for NuCypher Entities
[](https://discord.gg/7rmXa3S)
[](https://www.gnu.org/licenses/gpl-3.0.html)
### Deloyment (Hosted Sevice)
```bash
graph auth https://api.thegraph.com/deploy/
yarn prepare
yarn build
yarn deploy:mainnet
# Ibex Testnet
yarn prepare:rinkeby
yarn build
yarn deploy:rinkeby
# Lynx Testnet
yarn prepare:goerli
yarn build
yarn deploy:goerli
```
##### Manual Deployment
```bash
graph deploy --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ nucypher/nucypher --debug
```
##### Health Check
Logs for the hosted service can be found on the dashboard:
###### Current Version
```bash
curl --location --request POST 'https://api.thegraph.com/index-node/graphql' \
--data-raw '{"query":"{ indexingStatusForCurrentVersion(subgraphName: \"nucypher-nucypher\") \
{ subgraph fatalError { message } nonFatalErrors {message } } }"}'
```
###### Pending Version
```bash
curl --location --request POST 'https://api.thegraph.com/index-node/graphql' \
--data-raw '{"query":"{ indexingStatusForPendingVersion(subgraphName: \"nucypher/nucypher\") \
{ subgraph fatalError { message } nonFatalErrors {message } } }"}'
```
#### Acknowledgments
Many thanks to LivePeer and TheGraph for open sourcing thier examplar code that is reused/modified and inspired this codebase.
- LivePeer's subgraph:
- TheGraph's example:
- Official TheGraph Docs: