A subgraph that indexes nouns events.
yarn
This repo contains the templates for compiling and deploying a graphql schema to thegraph.
To authenticate for thegraph deployment use the Access Token
from thegraph dashboard:
yarn run graph auth https://api.thegraph.com/deploy/ $ACCESS_TOKEN
# Official Subgraph
yarn prepare:[network] # Supports rinkeby and mainnet
# Fork
yarn --silent mustache config/[network]-fork.json subgraph.yaml.mustache > subgraph.yaml
yarn codegen
# Official Subgraph
yarn deploy:[network] # Supports rinkeby and mainnet
# Fork
yarn deploy [organization]/[subgraph-name]
Make sure you have Docker installed. Run your local graph node by running:
yarn graph-node
Make sure your local chain is running: in a new terminal go to the nouns-contracts
package and run:
yarn task:run-local
Then in a new terminal run:
yarn deploy:hardhat
We're using Matchstick. Matchstick supports Macs and other Ubuntu-based machines natively. For other operating systems they have a Docker-based solution (see their repo for more info).
Copy matchstick.yaml.example
and name the copy matchstick.yaml
. Make sure the path there is a *full working path to your monorepo's top node_modules
folder. Matchstick compilation fails when using relative paths.
From a clean pull run these commands in sequence:
yarn prepare:rinkeby && yarn codegen
yarn test