A subgraph that indexes nouns events.
yarnThis 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.yamlyarn 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-nodeMake sure your local chain is running: in a new terminal go to the nouns-contracts package and run:
yarn task:run-localThen in a new terminal run:
yarn deploy:hardhatWe'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