-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
41 lines (41 loc) · 1.96 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
{
"name": "asset-price-history",
"license": "UNLICENSED",
"private": true,
"workspaces": {
"packages": [
"packages/*"
],
"nohoist": [
"packages/subgraph/@graphprotocol/graph-ts",
"packages/subgraph/@graphprotocol/graph-ts/**"
]
},
"scripts": {
"subgraph:codegen": "graph codegen",
"build": "graph build",
"create-local": "graph create --node http://localhost:8020/ dkirsche/asset-price-history",
"remove-local": "graph remove --node http://localhost:8020/ dkirsche/asset-price-history",
"deploy-local": "graph deploy --node http://localhost:8020/ --ipfs http://localhost:5001 dkirsche/asset-price-history",
"prepare:subgraph": "mustache ./config/${NETWORK}.json ./templates/${PROTOCOL}_${NETWORK}.subgraph.template.yaml > subgraph.yaml && npm run subgraph:codegen",
"prepare:test": "mustache ./config/mainnet.json ./templates/test.subgraph.template.yaml > subgraph.yaml && npm run subgraph:codegen",
"deploy": "env-cmd npm run prepare:subgraph && SLUG=dkirsche/price-history-${PROTOCOL}-${NETWORK} env-cmd npm run subgraph:deploy",
"deploy:aave_eth": "NETWORK=eth PROTOCOL=aave env-cmd npm run deploy",
"deploy:aave_matic": "NETWORK=matic PROTOCOL=aave env-cmd npm run deploy",
"deploy:curve_eth": "NETWORK=eth PROTOCOL=curve env-cmd npm run deploy",
"deploy:curve_matic": "NETWORK=matic PROTOCOL=curve env-cmd npm run deploy",
"deploy:yearn_eth": "NETWORK=eth PROTOCOL=yearn env-cmd npm run deploy",
"deploy:test": "env-cmd npm run prepare:test && SLUG=dkirsche/sandbox env-cmd npm run subgraph:deploy",
"subgraph:deploy": "graph deploy $SLUG --ipfs https://api.thegraph.com/ipfs/ --node https://api.thegraph.com/deploy/ --access-token $ACCESS_TOKEN",
"deploy-all": "run-s deploy:*"
},
"dependencies": {
"@graphprotocol/graph-cli": "0.18.0",
"@graphprotocol/graph-ts": "0.18.0",
"env-cmd": "^10.1.0"
},
"devDependencies": {
"hardhat": "^2.2.1",
"mustache": "^3.1.0"
}
}