-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommands.json
More file actions
65 lines (65 loc) · 2.31 KB
/
commands.json
File metadata and controls
65 lines (65 loc) · 2.31 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
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
58
59
60
61
62
63
64
65
{
"$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"]
},
"typegen:ethereum": {
"description": "Generate data access classes for Ethereum ABI files",
"cmd": ["squid-evm-typegen", "./src/ethereum/abi", {"glob": "./src/ethereum/abi/*.json"}, "--multicall"]
},
"typegen:base": {
"description": "Generate data access classes for Base ABI files",
"cmd": ["squid-evm-typegen", "./src/base/abi", {"glob": "./src/base/abi/*.json"}, "--multicall"]
},
"typegen": {
"description": "Generate data access classes for all ABI files",
"deps": ["typegen:ethereum", "typegen:base"]
},
"process:ethereum": {
"description": "Process Ethereum chain events",
"deps": ["build"],
"cmd": ["node", "--require=dotenv/config", "lib/ethereum/main.js"]
},
"process:base": {
"description": "Process Base chain events",
"deps": ["build"],
"cmd": ["node", "--require=dotenv/config", "lib/base/main.js"]
},
"process:all": {
"description": "Process both chains simultaneously",
"deps": ["build"],
"cmd": ["concurrently", "npm:process:ethereum", "npm:process:base"]
},
"process:ethereum-prod": {
"description": "Start the squid processor",
"cmd": ["node", "lib/ethereum/main.js"],
"hidden": true
},
"process:base-prod": {
"description": "Start the squid processor",
"cmd": ["node", "lib/base/main.js"],
"hidden": true
},
"process:all-prod": {
"description": "Start the squid processor for all chains",
"cmd": ["concurrently", "npm:process:ethereum-prod", "npm:process:base-prod"],
"hidden": true
},
"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"]
}
}
}