-
Notifications
You must be signed in to change notification settings - Fork 19
/
Makefile
69 lines (59 loc) · 1.84 KB
/
Makefile
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
VERSION := $(shell git describe --tags --always --dirty="-dev")
.PHONY: clean
clean:
rm -rf out/
.PHONY: test
test:
go test ./framework/...
.PHONY: lint
lint:
gofmt -d -s examples/ framework/
gofumpt -d -extra examples/ framework/
go vet ./examples/... ./framework/...
staticcheck ./examples/... ./framework/...
golangci-lint run
.PHONY: fmt
fmt:
gofmt -s -w examples/ framework/
gofumpt -extra -w examples/ framework/
gci write examples/ framework/
go mod tidy
.PHONY: lt
lt: lint test
.PHONY: devnet-up
devnet-up:
@docker compose --file ./docker-compose.yaml up --detach
.PHONY: devnet-down
devnet-down:
@docker compose --file ./docker-compose.yaml down
.PHONY: devnet-kurtosis-up
devnet-kurtosis-up:
@kurtosis run \
--enclave eth-devnet \
github.com/kurtosis-tech/[email protected] \
"$$( cat ./devnet/kurtosis.yaml )"
@kurtosis service stop eth-devnet mev-flood
@docker compose --file ./devnet/docker-compose.yaml up --detach
.PHONY: devnet-kurtosis-down
devnet-kurtosis-down:
@docker compose --file ./devnet/docker-compose.yaml down
@docker volume rm devnet_suave-blockscout-db-data || true
@kurtosis enclave stop eth-devnet
@kurtosis enclave rm eth-devnet
@kurtosis engine stop
.PHONY: run-integration
run-integration:
go run examples/build-eth-block/main.go
go run examples/app-ofa-private/main.go
go run examples/mevm-confidential-store/main.go
go run examples/mevm-context/main.go
go run examples/mevm-is-confidential/main.go
go run examples/onchain-callback/main.go
go run examples/onchain-state/main.go
go run examples/offchain-logs/main.go
go run examples/mevm-context/main.go
go run examples/private-library/main.go
go run examples/private-library-confidential-store/main.go
go run examples/private-suapp-key/main.go
go run examples/private-suapp-key-gen/main.go
go run examples/std-transaction-signing/main.go