Subgraph for shell
Install dependencies:
yarn
Prepare the manifest for a specific network (see ./config
):
NETWORK=rinkeby yarn prepare
Generate AssemblyScript bindings from ABIs and graph schema (this does not need to be re-run for different networks, but prepare must be run at least once for the bindings to generate):
yarn codegen
Ensure you have authorized with the graph-cli:
npx graph auth --product hosted-service $YOUR_AUTH_TOKEN
Deploy the subgraph to the prepared network:
NETWORK=rinkeby yarn deploy