-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
34 lines (34 loc) · 1.92 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
{
"name": "iexec-voucher-subgraph",
"type": "module",
"version": "1.0.0",
"description": "Subgraph for iExec Voucher contracts",
"repository": {
"type": "git",
"url": "git+https://github.com/iExecBlockchainComputing/iexec-voucher-subgraph.git"
},
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/iExecBlockchainComputing/iexec-voucher-subgraph/issues"
},
"homepage": "https://github.com/iExecBlockchainComputing/iexec-voucher-subgraph#readme",
"scripts": {
"codegen": "cp subgraph.template.yaml subgraph.yaml && graph codegen",
"build": "graph build",
"create": "graph create --node ${GRAPHNODE_URL:-http://localhost:8020} ${NETWORK_NAME:-bellecour}/iexec-voucher",
"remove": "graph remove --node ${GRAPHNODE_URL:-http://localhost:8020} ${NETWORK_NAME:-bellecour}/iexec-voucher",
"deploy:prepare-manifest": "sed -i \"s|#NETWORK_NAME#|network: ${NETWORK_NAME:-bellecour}|g\" subgraph.yaml && sed -i \"s|#VOUCHER_HUB_ADDRESS#|address: \\\"$VOUCHER_HUB_ADDRESS\\\"|g\" subgraph.yaml && sed -i \"s|#VOUCHER_HUB_START_BLOCK#|startBlock: $VOUCHER_HUB_START_BLOCK|g\" subgraph.yaml",
"deploy": "npm run deploy:prepare-manifest && graph deploy --node ${GRAPHNODE_URL:-http://localhost:8020} --ipfs ${IPFS_URL:-http://localhost:5001} ${NETWORK_NAME:-bellecour}/iexec-voucher --version-label ${VERSION_LABEL:-develop}",
"clean": "rm -rf generated && rm -rf build",
"all": "npm run clean && npm run codegen && npm run build && npm run create && npm run deploy",
"stop-test-stack": "cd test-stack && docker compose down --remove-orphans --volumes",
"start-test-stack": "npm run stop-test-stack && cd test-stack && docker compose build && node prepare-test-env.js && docker compose up -d"
},
"author": "iExec",
"dependencies": {
"@graphprotocol/graph-cli": "^0.71.1",
"@graphprotocol/graph-ts": "^0.35.1",
"@iexec/poco": "^5.5.0",
"@iexec/voucher-contracts": "^1.0.0"
}
}