Skip to content

Latest commit

 

History

History
 
 

nouns-subgraph

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

@nouns/subgraph

A subgraph that indexes nouns events.

Quickstart

yarn

Nouns Subgraph

This repo contains the templates for compiling and deploying a graphql schema to thegraph.

Authenticate

To authenticate for thegraph deployment use the Access Token from thegraph dashboard:

yarn run graph auth https://api.thegraph.com/deploy/ $ACCESS_TOKEN

Create subgraph.yaml from config template

# Official Subgraph
yarn prepare:[network] # Supports rinkeby and mainnet

# Fork
yarn --silent mustache config/[network]-fork.json subgraph.yaml.mustache > subgraph.yaml

Generate types to use with Typescript

yarn codegen

Compile and deploy to thegraph (must be authenticated)

# Official Subgraph
yarn deploy:[network] # Supports rinkeby and mainnet

# Fork
yarn deploy [organization]/[subgraph-name]