-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
53 lines (53 loc) · 3.14 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
53
{
"name": "bend-subgraph",
"version": "1.0.0",
"description": "This package contains subgraph of the bend protocol",
"scripts": {
"prettier:abis": "prettier --write 'constant-abis/**/*.json' 'abis/**/*.json'",
"prettier:code": "prettier --write 'config/**/*.json' 'constant-abis/**/*.json' 'src/**/*.ts'",
"prepare:subgraph": "mustache ./config/${NETWORK:-localhost}.json ${BLOCKCHAIN:-ethereum}.subgraph.template.yaml > subgraph.yaml && rm -rf generated && npm run subgraph:codegen",
"subgraph:codegen": "graph codegen --output-dir ./generated",
"subgraph:build": "graph build",
"subgraph:create:local": "graph create bend/bend-protocol --node http://${LOCAL_IP:-localhost}:8020",
"subgraph:remove:local": "graph remove bend/bend-protocol --node http://${LOCAL_IP:-localhost}:8020",
"subgraph:deploy:local": "graph deploy bend/bend-protocol --ipfs http://${LOCAL_IP:-localhost}:5001 --node http://${LOCAL_IP:-localhost}:8020",
"subgraph:deploy:hosted": "graph deploy $SLUG --ipfs https://api.thegraph.com/ipfs/ --node https://api.thegraph.com/deploy/ --access-token $ACCESS_TOKEN",
"deploy:local:localhost": "BLOCKCHAIN=ethereum NETWORK=localhost env-cmd npm run prepare:subgraph && env-cmd npm run subgraph:deploy:local",
"deploy:local:develop": "BLOCKCHAIN=ethereum NETWORK=develop env-cmd npm run prepare:subgraph && env-cmd npm run subgraph:deploy:local",
"deploy:local:goerli": "BLOCKCHAIN=ethereum NETWORK=goerli env-cmd npm run prepare:subgraph && env-cmd npm run subgraph:deploy:local",
"deploy:local:sepolia": "BLOCKCHAIN=ethereum NETWORK=sepolia env-cmd npm run prepare:subgraph && env-cmd npm run subgraph:deploy:local",
"deploy:local:mainnet": "BLOCKCHAIN=ethereum NETWORK=mainnet env-cmd npm run prepare:subgraph && env-cmd npm run subgraph:deploy:local",
"deploy:hosted:goerli": "BLOCKCHAIN=ethereum NETWORK=goerli env-cmd npm run prepare:subgraph && SLUG=bend/bend-protocol-goerli env-cmd npm run subgraph:deploy:hosted",
"deploy:hosted:sepolia": "BLOCKCHAIN=ethereum NETWORK=sepolia env-cmd npm run prepare:subgraph && SLUG=bend/bend-protocol-sepolia env-cmd npm run subgraph:deploy:hosted",
"deploy:hosted:mainnet": "BLOCKCHAIN=ethereum NETWORK=mainnet env-cmd npm run prepare:subgraph && SLUG=bend/bend-protocol env-cmd npm run subgraph:deploy:hosted"
},
"repository": {
"type": "git",
"url": "https://github.com/BendDAO/bend-protocol-subgraph"
},
"author": "BEND <[email protected]>",
"contributors": [],
"license": "MIT",
"dependencies": {
"@graphprotocol/graph-cli": "^0.18.0",
"@graphprotocol/graph-ts": "^0.18.1",
"@typescript-eslint/eslint-plugin": "^2.0.0",
"@typescript-eslint/parser": "^2.0.0",
"env-cmd": "^10.1.0",
"eslint": "^6.2.2",
"eslint-config-prettier": "^6.1.0",
"husky": "^4.2.5",
"lint-staged": "^9.2.5",
"mustache": "^3.1.0",
"typescript": "3.5.3"
},
"husky": {
"hooks": {
"pre-commit": "pretty-quick --staged --pattern 'contracts/**/*.sol' --pattern 'helpers/**/*.ts' --pattern 'test/**/*.ts' --pattern 'tasks/**/*.ts'"
}
},
"devDependencies": {
"prettier": "^2.4.1",
"pretty-quick": "^3.1.2"
}
}