forked from onflow/flow-evm-gateway
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
48 lines (41 loc) · 1.49 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
.PHONY: test
test:
# test all packages
go test -cover ./...
.PHONY: e2e-test
e2e-test:
# test all packages
go clean -testcache
cd tests/web3js && npm install
cd tests && LOG_OUTPUT=false go test -cover ./...
.PHONY: check-tidy
check-tidy:
go mod tidy
git diff --exit-code
cd tests
go mod tidy
git diff --exit-code
.PHONY: fix-lint
fix-lint:
golangci-lint run -v --fix ./...
.PHONY: generate
generate:
go install github.com/vektra/mockery/[email protected]
mockery --dir=storage --name=BlockIndexer --output=storage/mocks
mockery --dir=storage --name=ReceiptIndexer --output=storage/mocks
mockery --dir=storage --name=TransactionIndexer --output=storage/mocks
mockery --dir=storage --name=AccountIndexer --output=storage/mocks
mockery --dir=storage --name=TraceIndexer --output=storage/mocks
mockery --all --dir=services/traces --output=services/traces/mocks
mockery --all --dir=services/ingestion --output=services/ingestion/mocks
mockery --dir=models --name=Engine --output=models/mocks
.PHONY: ci
ci: check-tidy test e2e-test
.PHONY: start
start:
go run ./cmd/server/main.go
.PHONY: start-local
start-local:
rm -rf db/
rm -rf metrics/data/
go run cmd/main/main.go --flow-network-id=flow-emulator --coinbase=FACF71692421039876a5BB4F10EF7A439D8ef61E --coa-address=f8d6e0586b0a20c7 --coa-key=2619878f0e2ff438d17835c2a4561cb87b4d24d72d12ec34569acd0dd4af7c21 --wallet-api-key=2619878f0e2ff438d17835c2a4561cb87b4d24d72d12ec34569acd0dd4af7c21 --coa-resource-create=true --gas-price=0 --log-writer=console