-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
36 lines (36 loc) · 2.5 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
{
"name": "gro-subgraph-eth",
"license": "UNLICENSED",
"scripts": {
"eth-test-hosted": "SCOPE=test BLOCKCHAIN=ethereum NETWORK=mainnet yarn prepare:subgraph && yarn deploy:mainnet:test:hosted",
"eth-prod-hosted": "SCOPE=prod BLOCKCHAIN=ethereum NETWORK=mainnet yarn prepare:subgraph && yarn deploy:mainnet:prod:hosted",
"eth-pre-prod-hosted": "SCOPE=prod BLOCKCHAIN=ethereum NETWORK=mainnet yarn prepare:subgraph && yarn deploy:mainnet:pre-prod:hosted",
"eth-test-studio": "SCOPE=test BLOCKCHAIN=ethereum NETWORK=mainnet yarn prepare:subgraph && yarn deploy:mainnet:test:studio",
"eth-prod-studio": "SCOPE=prod BLOCKCHAIN=ethereum NETWORK=mainnet yarn prepare:subgraph && yarn deploy:mainnet:prod:studio",
"eth-test-local": "SCOPE=test BLOCKCHAIN=ethereum NETWORK=mainnet yarn prepare:subgraph && yarn deploy:mainnet:test:local",
"prepare:subgraph": "mustache ./config/${NETWORK}-${SCOPE}.json ./templates/${BLOCKCHAIN}.subgraph.template.yaml > subgraph.yaml && rm -rf generated && yarn generate:schema && graph codegen && graph build",
"generate:addresses": "echo 'import { Contracts } from \"./src/types/constants\"; \n\nexport const contracts: Contracts = ' | cat - addresses.ts > temp && mv temp addresses.ts",
"generate:schema": "cp ./schemas/${BLOCKCHAIN}.schema.graphql schema.graphql && cp ./config/${NETWORK}-${SCOPE}.json addresses.ts && yarn generate:addresses",
"deploy:mainnet:test:hosted": "graph deploy --node https://api.thegraph.com/deploy/ sjuanati/gro-test-eth",
"deploy:mainnet:prod:hosted": "graph deploy --node https://api.thegraph.com/deploy/ sjuanati/gro-prod-eth",
"deploy:mainnet:pre-prod:hosted": "graph deploy --node https://api.thegraph.com/deploy/ sjuanati/gro-test-sjs",
"deploy:mainnet:test:studio": "graph deploy --studio gro-mainnet-test",
"deploy:mainnet:prod:studio": "graph deploy --studio gro-mainnet",
"deploy:mainnet:test:local": "graph deploy --node http://localhost:8020/ --ipfs http://localhost:5001 sjuanati/gro-test-eth",
"create-local": "graph create --node http://localhost:8020/ sjuanati/gro-test-eth",
"remove-local": "graph remove --node http://localhost:8020/ sjuanati/gro-test-eth",
"codegen": "graph codegen",
"build": "graph build"
},
"dependencies": {
"@graphprotocol/graph-cli": "0.56.0",
"@graphprotocol/graph-ts": "0.31.0",
"ejs": "^3.1.9",
"mustache": "^4.2.0",
"node-fetch": "^3.3.2",
"yargs-parser": "^21.1.1"
},
"resolutions": {
"@graphprotocol/graph-cli/gluegun/ejs": "^3.1.7"
}
}