This repository has been archived by the owner on Jul 1, 2024. It is now read-only.
generated from subsquid-labs/squid-substrate-template
-
Notifications
You must be signed in to change notification settings - Fork 11
/
justfile
91 lines (60 loc) · 1.35 KB
/
justfile
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
default := 'squid'
types := 'typegen'
set dotenv-load
process: build
node -r dotenv/config lib/processor.js
serve:
@npx squid-graphql-server
up *FLAGS:
docker compose up {{FLAGS}}
upd:
@just up -d
pull:
docker compose pull
clear:
docker compose rm -f
rm -rf .data
down:
docker compose down
build:
npm run build
codegen:
npx squid-typeorm-codegen
typegen TAG=types:
npx squid-substrate-typegen {{TAG}}.json
ksmVersion: explore
explore:
npx squid-substrate-metadata-explorer \
--archive $ARCHIVE_URL \
--out kusamaVersions.jsonl
bug: down upd
reset: migrate
quickstart: migrate process
quick: build reset process
db: update-db migrate
prod TAG:
gh pr create --base release-{{TAG}}
migrate:
npx squid-typeorm-migration apply
update-db:
npx squid-typeorm-migration generate
test:
npm run test:unit
squid TAG=default:
gh pr create --base release-{{TAG}}
improve TAG=default:
npx sqd deploy -m {{TAG}}.yaml .
release TAG=default:
npx sqd deploy -m {{TAG}}.yaml .
kill TAG:
npx sqd squid:kill snekk@{{TAG}}
exec:
docker exec -it snek-db-1 psql -U postgres -d squid
brutal TAG=default:
npx sqd deploy -r -m {{TAG}}.yaml .
update-deps:
npx npm-check-updates -u
tail TAG:
npx sqd squid logs snekk@{{TAG}} -f
where-chain:
echo "https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fbasilisk-kodadot.hydration.cloud#/explorer" | pbcopy