Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
75 lines (75 loc) · 3.72 KB
/
Copy pathpackage.json
File metadata and controls
75 lines (75 loc) · 3.72 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
66
67
68
69
70
71
72
73
74
75
{
"name": "squid",
"private": true,
"engines": {
"node": ">=16"
},
"scripts": {
"build": "rm -rf lib && tsc",
"format": "prettier --write \"src/**/*.ts\"",
"format:check": "prettier --check \"src/**/*.ts\"",
"hasura:regenerate": "rm -rf hasura_metadata.json && npx squid-hasura-configuration regenerate && node scripts/patch-hasura-row-limit.js && node scripts/patch-hasura-chain-stats-rest.js",
"hasura:apply": "npx squid-hasura-configuration apply",
"meta:update": "npx squid-substrate-metadata-explorer --rpc \"${RPC:?Set RPC env var}\" --out metadata.jsonl",
"meta:add": "node scripts/add-genesis-metadata.js",
"meta:add:mainnet": "RPC=wss://rpc1-mainnet.quantus.com node scripts/add-genesis-metadata.js",
"meta:delete": "rm -rf metadata.jsonl ./src/generated_types ./src/model",
"gen:types": "npx squid-substrate-typegen ./typegen.json",
"gen:model": "npx squid-typeorm-codegen",
"gen:migration": "rm -rf db/migrations && npm run build && npx squid-typeorm-migration generate -n InitialSchema && node scripts/patch-migration-gin-indexes.js",
"db:migrate": "npx squid-typeorm-migration apply",
"db:recreate": "npx sqd down && npx sqd up",
"db:reset": "npm run db:recreate && npm run meta:update && npm run gen:types && npm run gen:model && npm run build && rm -rf db/migrations && npx squid-typeorm-migration generate -n InitialSchema && node scripts/patch-migration-gin-indexes.js && npm run db:migrate",
"generate": "npm run meta:delete && docker compose -f docker-compose-generate.yml up -d && npm run meta:update && npm run gen:types && npm run gen:model && npm run build && npm run gen:migration && docker compose -f docker-compose-generate.yml down && npm run hasura:regenerate",
"generate:local": "RPC=ws://localhost:9944 npm run generate",
"generate:prod": "RPC=wss://a1-planck.quantus.cat npm run generate",
"dev": "npm run build && npm run db:migrate && npm run hasura:apply && PROMETHEUS_PORT=9090 node --require=dotenv/config lib/main.js",
"start": "PROMETHEUS_PORT=9090 node --require=dotenv/config lib/main.js",
"codegen": "sbs-tools-v3 codegen",
"postinstall": "npm run build",
"test": "jest",
"prepare": "husky"
},
"dependencies": {
"@noble/hashes": "^1.7.2",
"@polkadot/types": "^16.4.3",
"@polkadot/util": "^13.5.4",
"@polkadot/util-crypto": "^13.5.4",
"@subsquid/hasura-configuration": "2.0.0",
"@subsquid/ss58": "^2.0.2",
"@subsquid/substrate-data": "4.4.4",
"@subsquid/substrate-processor": "^8.6.0",
"@subsquid/typeorm-migration": "^1.3.0",
"@subsquid/typeorm-store": "^1.5.1",
"bn.js": "^5.2.2",
"dotenv": "^17.2.1",
"pg": "8.16.3",
"reflect-metadata": "^0.2.2",
"type-graphql": "^1.2.0-rc.1",
"typeorm": "^0.3.25"
},
"devDependencies": {
"@babel/preset-env": "7.28.6",
"@subsquid/substrate-metadata-explorer": "^3.2.0",
"@subsquid/substrate-typegen": "^8.1.0",
"@subsquid/typeorm-codegen": "^2.0.2",
"@types/jest": "^30.0.0",
"@types/node": "^24.2.0",
"babel-jest": "30.2.0",
"concurrently": "^9.2.0",
"husky": "^9.1.7",
"jest": "^30.0.5",
"jest-environment-node": "^30.0.5",
"lint-staged": "^16.1.4",
"npm-check-updates": "^18.0.2",
"prettier": "^3.6.2",
"ts-jest": "^29.4.1",
"ts-node": "^10.9.2",
"typescript": "^5.9.2"
},
"author": "Parity Technologies <admin@parity.io>",
"license": "Apache-2.0",
"lint-staged": {
"*.{ts}": "npm run format"
}
}