forked from ethereum-optimism/supersim
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathJustfile
37 lines (28 loc) · 904 Bytes
/
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
set positional-arguments
build-contracts:
forge --version
forge build --sizes --root ./contracts
build-go:
go build ./...
lint-go:
golangci-lint run -E goimports,sqlclosecheck,bodyclose,asciicheck,misspell,errorlint --timeout 5m -e "errors.As" -e "errors.Is" ./...
test-contracts:
forge test -vvv --root ./contracts
test-go:
go test ./... -v
start:
go run ./...
clean-lib:
rm -rf lib
checkout-optimism-monorepo:
rm -rf lib/optimism
mkdir -p lib/optimism && \
cd lib/optimism && \
git init && \
git remote add origin https://github.com/ethereum-optimism/optimism.git && \
git fetch --depth=1 origin 67de0aff902362759a00049460f6fa80b1c2afd1 && \
git reset --hard FETCH_HEAD && \
git submodule update --init --recursive && \
make cannon-prestate
generate-genesis: checkout-optimism-monorepo
python3 scripts/generate-genesis.py