This repository was archived by the owner on Mar 15, 2022. It is now read-only.
forked from 0xSplits/splits-subgraph
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
27 lines (27 loc) · 2.38 KB
/
package.json
File metadata and controls
27 lines (27 loc) · 2.38 KB
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
{
"name": "splits-subgraph",
"license": "UNLICENSED",
"scripts": {
"codegen": "graph codegen",
"build": "graph build",
"deploy:mainnet": "graph deploy --node https://api.thegraph.com/deploy/ 0xSplits/splits-subgraph-ethereum",
"deploy:ropsten": "graph deploy --node https://api.thegraph.com/deploy/ 0xSplits/splits-subgraph-ropsten",
"deploy:polygon": "graph deploy --node https://api.thegraph.com/deploy/ 0xSplits/splits-subgraph-polygon",
"deploy:mumbai": "graph deploy --node https://api.thegraph.com/deploy/ 0xSplits/splits-subgraph-mumbai",
"create-local": "graph create --node http://localhost:8020/ 0xSplits/splits-subgraph",
"remove-local": "graph remove --node http://localhost:8020/ 0xSplits/splits-subgraph",
"deploy-local": "graph deploy --node http://localhost:8020/ --ipfs http://localhost:5001 0xSplits/splits-subgraph",
"prepare:mainnet": "mustache config/mainnet.json schema.template.graphql > schema.graphql && mustache config/mainnet.json subgraph.template.yaml > subgraph.yaml && cp src/ethereum.mapping.ts src/mapping.ts && cp abis/ethereum.SplitMain.json abis/SplitMain.json && graph codegen",
"prepare:ropsten": "mustache config/ropsten.json schema.template.graphql > schema.graphql && mustache config/ropsten.json subgraph.template.yaml > subgraph.yaml && cp src/ethereum.mapping.ts src/mapping.ts && cp abis/ethereum.SplitMain.json abis/SplitMain.json && graph codegen",
"prepare:polygon": "mustache config/polygon.json schema.template.graphql > schema.graphql && mustache config/polygon.json subgraph.template.yaml > subgraph.yaml && cp src/polygon.mapping.ts src/mapping.ts && cp abis/polygon.SplitMain.json abis/SplitMain.json && graph codegen",
"prepare:mumbai": "mustache config/mumbai.json schema.template.graphql > schema.graphql && mustache config/mumbai.json subgraph.template.yaml > subgraph.yaml && cp src/polygon.mapping.ts src/mapping.ts && cp abis/polygon.SplitMain.json abis/SplitMain.json && graph codegen",
"build-and-deploy-all": "yarn prepare:ropsten && yarn build && yarn deploy:ropsten && yarn prepare:mainnet && yarn build && yarn deploy:mainnet && yarn prepare:mumbai && yarn build && yarn deploy:mumbai && yarn prepare:polygon && yarn build && yarn deploy:polygon"
},
"dependencies": {
"@graphprotocol/graph-cli": "0.27.0",
"@graphprotocol/graph-ts": "0.24.1"
},
"devDependencies": {
"mustache": "^4.2.0"
}
}