-
Notifications
You must be signed in to change notification settings - Fork 53
/
commands.json
57 lines (57 loc) · 1.91 KB
/
commands.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{
"$schema": "https://cdn.subsquid.io/schemas/commands.json",
"commands": {
"clean": {
"description": "delete all build artifacts",
"cmd": ["npx", "--yes", "rimraf", "lib"]
},
"build": {
"description": "Build the squid project",
"deps": ["clean"],
"cmd": ["tsc"]
},
"check-key": {
"cmd": ["node", "scripts/checkKey.js", "query-gateway/keys/networkTestTwoHighTrafficLogs.key"],
"hidden": true
},
"get-peer-id": {
"deps": ["check-key"],
"description": "Get a peer ID given the public key",
"cmd": ["node", "scripts/getPeerIdFromGatewayKey.js", "query-gateway/keys/networkTestTwoHighTrafficLogs.key"]
},
"up": {
"deps": ["check-key"],
"description": "Start a Subsquid network gateway",
"cmd": ["docker", "compose", "up", "-d"]
},
"down": {
"description": "Stop a Subsquid network gateway",
"cmd": ["docker", "compose", "down"]
},
"process:eth": {
"description": "Load .env and start the ETH squid processor",
"cmd": ["node", "--require=dotenv/config", "lib/main.js", "eth"]
},
"process:bsc": {
"description": "Load .env and start the BSC squid processor",
"cmd": ["node", "--require=dotenv/config", "lib/main.js", "bsc"]
},
"process:base": {
"description": "Load .env and start the Base squid processor",
"cmd": ["node", "--require=dotenv/config", "lib/main.js", "base"]
},
"process:moonbeam": {
"description": "Load .env and start the Base squid processor",
"cmd": ["node", "--require=dotenv/config", "lib/main.js", "moonbeam"]
},
"check-updates": {
"cmd": ["npx", "--yes", "npm-check-updates", "--filter=/subsquid/", "--upgrade"],
"hidden": true
},
"bump": {
"description": "Bump @subsquid packages to the latest versions",
"deps": ["check-updates"],
"cmd": ["npm", "i", "-f"]
}
}
}