Skip to content

milkyklim/thegraph-keep-network

Repository files navigation

Keep Network Subgraph

License CI

Subgraph to track status of grants' on both Mainnet and Ropsten networks.

Live versions:

Setup

  • Copy .envrc.example to .envrc.
  • Set your The Graph ACCESS_TOKEN.
  • Set network environment variables:

Ropsten:

NETWORK="ropsten"
GRAPH_PATH="milkyklim/keep-network-ropsten"

Mainnet:

NETWORK="mainnet"
GRAPH_PATH="milkyklim/keep-network"

Running

  • yarn – install dependencies
  • yarn prepare:network - generate subgraph.yaml for specific network
  • yarn codegen – generate code
  • yarn create – allocate subgraph name in Graph Node
  • yarn deploy - deploy supgraph to Graph Node
  • yarn publish-graph – run all steps in one command