{
  "name": "synthetix-subgraph",
  "license": "MIT",
  "version": "1.2.1",
  "author": "Synthetix",
  "main": "index.js",
  "browser": "index.min.js",
  "bin": {
    "snxData": "bin.js"
  },
  "scripts": {
    "compress": "minify index.js > index.min.js",
    "lint": "eslint .",
    "codegen": "node prepare-abis && graph codegen",
    "codegen:snx": "npm run prepare:snx && npm run codegen && npm run cleanup",
    "codegen:rates": "npm run prepare:rates && npm run codegen && npm run cleanup",
    "codegen:depot": "npm run prepare:depot && npm run codegen && npm run cleanup",
    "codegen:exchanges": "npm run prepare:exchanges && npm run codegen && npm run cleanup",
    "prepare:snx": "cp subgraphs/synthetix.yaml ./subgraph.yaml",
    "prepare:rates": "cp subgraphs/synthetix-rates.yaml ./subgraph.yaml",
    "prepare:exchanges": "cp subgraphs/synthetix-exchanges.yaml ./subgraph.yaml",
    "prepare:depot": "cp subgraphs/synthetix-depot.yaml ./subgraph.yaml",
    "cleanup": "rm ./subgraph.yaml || true",
    "build": "graph build",
    "deploy": "graph deploy --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/",
    "deploy:snx": "npm run prepare:snx && npm run deploy -- --access-token $THEGRAPH_SNX_ACCESS_TOKEN synthetixio-team/synthetix; EXIT_CODE=$?; npm run cleanup; exit $EXIT_CODE",
    "deploy:rates": "npm run prepare:rates && npm run deploy -- --access-token $THEGRAPH_SNX_ACCESS_TOKEN synthetixio-team/synthetix-rates; EXIT_CODE=$?; npm run cleanup; exit $EXIT_CODE",
    "deploy:depot": "npm run prepare:depot && npm run deploy -- --access-token $THEGRAPH_SNX_ACCESS_TOKEN synthetixio-team/synthetix-depot; EXIT_CODE=$?; npm run cleanup; exit $EXIT_CODE",
    "deploy:exchanges": "npm run prepare:exchanges && npm run deploy -- --access-token $THEGRAPH_SNX_ACCESS_TOKEN synthetixio-team/synthetix-exchanges; EXIT_CODE=$?; npm run cleanup; exit $EXIT_CODE",
    "create-local": "graph create --node http://localhost:8020/ synthetixio-team/synthetix",
    "remove-local": "graph remove --node http://localhost:8020/ synthetixio-team/synthetix",
    "deploy-local": "graph deploy --node http://localhost:8020/ --ipfs http://localhost:5001 synthetixio-team/synthetix"
  },
  "dependencies": {
    "@graphprotocol/graph-cli": "0.15.0",
    "@graphprotocol/graph-ts": "0.15.1",
    "chalk": "2.4.2",
    "commander": "2.20.0",
    "ethers": "4.0.27",
    "node-fetch": "2.6.0",
    "synthetix": "2.11.2"
  },
  "devDependencies": {
    "@typescript-eslint/eslint-plugin": "1.9.0",
    "@typescript-eslint/parser": "1.9.0",
    "eslint": "5.16.0",
    "eslint-config-prettier": "4.3.0",
    "eslint-import-resolver-typescript": "1.1.1",
    "eslint-plugin-import": "2.18.2",
    "eslint-plugin-prettier": "3.1.0",
    "husky": "3.0.8",
    "minify": "4.1.3",
    "prettier": "1.17.1",
    "typescript": "3.4.5"
  },
  "husky": {
    "hooks": {
      "pre-commit": "npm run compress && git add index.min.js"
    }
  }
}
