forked from Synthetixio/synthetix-subgraph
/
package.json
52 lines (52 loc) · 2.67 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{
"name": "synthetix-subgraph",
"license": "MIT",
"version": "1.2.1",
"author": "Synthetix",
"main": "index.js",
"browser": "index.min.js",
"bin": {
"snxData": "bin.js"
},
"scripts": {
"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",
"synthetix": "2.19.6"
},
"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",
"minify": "4.1.3",
"prettier": "1.17.1",
"typescript": "3.4.5"
}
}