An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# nucypher-subgraph
Subgraph Definition for NuCypher Entities

[![discord](https://img.shields.io/discord/411401661714792449.svg?logo=discord)](https://discord.gg/7rmXa3S)
[![license](https://img.shields.io/pypi/l/nucypher.svg)](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: