-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
29 lines (29 loc) · 1.65 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": "opium-v2-subgraph",
"license": "UNLICENSED",
"scripts": {
"codegen": "graph codegen",
"build": "graph build",
"prepare": "cat ./config/${NETWORK:-arbitrumTestnet}.json | mustache - subgraph.template.yaml > subgraph.yaml && yarn codegen && yarn build",
"prepare:mainnet": "NETWORK=mainnet yarn prepare",
"prepare:arbitrumOne": "NETWORK=arbitrumOne yarn prepare",
"prepare:arbitrumTestnet": "NETWORK=arbitrumTestnet yarn prepare",
"prepare:ganache": "NETWORK=ganache yarn prepare",
"prepare:goerli": "NETWORK=goerli yarn prepare",
"prepare:polygon": "NETWORK=polygon yarn prepare",
"deploy:mainnet": "yarn prepare:mainnet && graph deploy --node https://api.thegraph.com/deploy/ opiumprotocol/opium-v2-mainnet",
"deploy:arbitrumOne": "yarn prepare:arbitrumOne && graph deploy --node https://api.thegraph.com/deploy/ opiumprotocol/opium-v2-arbitrum-one",
"deploy:arbitrumTestnet": "yarn prepare:arbitrumTestnet && graph deploy --node https://api.thegraph.com/deploy/ opiumprotocol/opium-v2-arbitrum-rinkeby",
"deploy:polygon": "yarn prepare:polygon && graph deploy --node https://api.thegraph.com/deploy/ opiumprotocol/opium-v2-polygon",
"create-local": "graph create --node http://localhost:8020/ OpiumProtocol/opium-v2-subgraph",
"remove-local": "graph remove --node http://localhost:8020/ OpiumProtocol/opium-v2-subgraph",
"deploy-local": "graph deploy --node http://localhost:8020/ --ipfs http://localhost:5001 OpiumProtocol/opium-v2-subgraph"
},
"dependencies": {
"@graphprotocol/graph-cli": "0.25.3",
"@graphprotocol/graph-ts": "0.24.1"
},
"devDependencies": {
"mustache": "^4.2.0"
}
}