Skip to content

Latest commit

 

History

History
36 lines (24 loc) · 826 Bytes

README.md

File metadata and controls

36 lines (24 loc) · 826 Bytes

Subgraph for The Sandbox tokens

Install

To install run

yarn

Build

Run the following commands:

  • yarn generate <NETWORK> to generate the root subgraph.yaml and abis/ for that network from the contractsInfo.<NETWORK>.json file
  • yarn codegen to generate all the subgraph related files (build, generate folders)
  • yarn build to compile all the required files in src/ according to the subgraph.yaml

To test, try deploying to goerli

Deployment

Request the access token and authenticate with the following:

graph auth --product hosted-service <ACCESS_TOKEN>

Then run one of the following commands

  • yarn deploy:goerli
  • yarn deploy:mumbai
  • yarn deploy:mainnet
  • yarn deploy:polygon

Notes

  • Don't commit the root subgraph.yaml file, it's autogenerated