-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
29 lines (29 loc) · 1.57 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
{
"name": "dhedge-v2-subgraphs",
"description": "Contains dHEDGE V2 subgraphs",
"license": "MIT",
"scripts": {
"codegen": "graph codegen",
"build": "graph build",
"prepare:subgraph": "rm -f subgraph.yaml && cp ./manifests/$NETWORK.subgraph.yaml subgraph.yaml && rm -rf generated && yarn codegen && rm -rf build && yarn build",
"prepare:polygon:dev": "NETWORK=polygon-dev env-cmd yarn prepare:subgraph",
"prepare:polygon": "NETWORK=polygon env-cmd yarn prepare:subgraph",
"prepare:optimism": "NETWORK=optimism env-cmd yarn prepare:subgraph",
"prepare:arbitrum": "NETWORK=arbitrum env-cmd yarn prepare:subgraph",
"prepare:base": "NETWORK=base env-cmd yarn prepare:subgraph",
"deploy:hosted": "graph deploy --product hosted-service $SLUG --deploy-key $ACCESS_TOKEN",
"deploy:studio": "graph deploy --product subgraph-studio $SLUG --deploy-key $ACCESS_TOKEN",
"deploy:polygon:dev": "yarn prepare:polygon:dev && SLUG=dhedge/dhedge-v2-polygon-dev env-cmd yarn deploy:hosted",
"deploy:polygon": "yarn prepare:polygon && SLUG=dhedge/dhedge-v2-polygon env-cmd yarn deploy:hosted",
"deploy:optimism": "yarn prepare:optimism && SLUG=dhedge/dhedge-v2-optimism env-cmd yarn deploy:hosted",
"deploy:arbitrum": "yarn prepare:arbitrum && SLUG=dhedge/dhedge-v2-arbitrum env-cmd yarn deploy:hosted",
"deploy:base": "yarn prepare:base && SLUG=dhedge-v2-base-mainnet env-cmd yarn deploy:studio"
},
"dependencies": {
"@graphprotocol/graph-cli": "^0.44.0",
"@graphprotocol/graph-ts": "^0.29.3"
},
"devDependencies": {
"env-cmd": "^10.1.0"
}
}