-
Notifications
You must be signed in to change notification settings - Fork 3
/
package.json
31 lines (31 loc) · 2.26 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
{
"name": "@notional-finance/subgraph-v2",
"version": "0.0.1",
"license": "MIT",
"scripts": {
"subgraph:up": "npm run sandbox:down && npm run prepare:local && ./start.sh",
"subgraph:down": "docker-compose -f docker-compose.yml down",
"prepare:local": "hbs --stdout --helper ./helpers.js --data ./v2.local.json subgraph.template.yaml > subgraph.yaml",
"prepare:kovan": "hbs --stdout --helper ./helpers.js --data ./v2.kovan.json subgraph.template.yaml > subgraph.yaml",
"prepare:goerli": "hbs --stdout --helper ./helpers.js --data ./v2.goerli.json subgraph.template.yaml > subgraph.yaml",
"prepare:mainnet": "hbs --stdout --helper ./helpers.js --data ./v2.mainnet.json subgraph.template.yaml > subgraph.yaml",
"codegen": "yarn run graph codegen",
"build": "yarn run graph build",
"deploy:local": "graph create --node http://127.0.0.1:8020 notional-finance/local-v2 && graph deploy notional-finance/local-v2 ./subgraph.yaml --ipfs http://localhost:5001 --node http://127.0.0.1:8020",
"deploy:kovan": "yarn run prepare:kovan && yarn run codegen && graph deploy --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ notional-finance/kovan-v2",
"deploy:goerli": "yarn run prepare:goerli && yarn run codegen && graph deploy --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ notional-finance/goerli-v2",
"deploy:mainnet": "yarn run prepare:mainnet && yarn run codegen && graph deploy --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ notional-finance/mainnet-v2",
"deploy:mainnet-debug": "yarn run prepare:mainnet && yarn run codegen && graph deploy --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ notional-finance/mainnet-debug",
"deploy:studio:mainnet": "yarn run prepare:mainnet && yarn run codegen && yarn run graph deploy --studio notional-finance",
"testenv:up": "cd ../subgraph && ./start.sh",
"testenv:down": "cd ../subgraph && docker-compose down",
"compile:subgraph": "yarn run prepare:local && yarn run codegen && yarn run build && yarn run deploy:local"
},
"dependencies": {
"@graphprotocol/graph-cli": "^0.29.0",
"@graphprotocol/graph-ts": "^0.26.0"
},
"devDependencies": {
"hbs-cli": "^1.4.0"
}
}